package com.gopay.common.domain.cust;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

import com.gopay.common.cipher.utils.SensitiveInfoUtils;
import com.gopay.common.domain.BaseEntity;

@Entity
@Table(name = "CUST_CORP_INFO")
public class CustCorpInfo extends BaseEntity {
    private static final long serialVersionUID = -4561302449872037261L;
    private String custId;
    private int version;
    private String corpName;
    private String corpType;
    private String corpAddr;
    private String corpProvinceCode;
    private String corpCityCode;
    private String corpZip;
    private String corpTel;
    private String corpFax;
    private String corpBankCode;
    private String corpBankProvince;
    private String corpBankCity;
    private String corpBankBranchName;
    private String corpBankAcctNum;
    private String corpBankAcctName;
    private String corpStat;
    private String identityCode;
    private String linkmanName;
    private String linkmanTel;
    private String linkmanMobile;
    private String merName;
    private String websiteUrl;
    private String isRepeatNotify;
    private String isAntiFishing;
    private String isRealNameCertify;
    private Date realNameCertifyTime;
    private Date auditTime;
    private Date createdTs;
    private Date lastUpdTs;
    private String lastUpdTrancode;
    private String email;
    private Integer privilege;
    private String remarks;
    // 注册流程优化新增字段 wanggang20141225
    private String businessLicenseNo;// 营业执照号码
    private String organizationCode;// 组织机构代码
    private Date businessTerm;// 营业期限
    private String legalPersonName;// 法人姓名
    private String legalPersonCertNo;// 法人身份证号码
    private Date legalPersonCertTerm;// 法人身份证有效期
    //法人手机号 add by pansc 20170425
    private String legalPersonMobile;
    private String registeredCapital;// 注册资本
    private String payNoticeAddress;// 付款通知地址
    private Date contractTs;//签约时间
    private String isOpenCheckMac;//是否限制Mac登陆
    
    // Add by xiefei 20130619
    /**
     * 激活码
     */
    private String activateCode;

    /**
     * 是否签约商户 0 - 否 1 - 是
     */
    private int isMerChant;
    private String certFileUrl;

    private String websiteDesc;



    // Add by hjy
    // 2013-05-20--.equals(accountState){accountState=".equals(accountState){accountState="
    /**
     * 支付密码
     */
    private String payPwd;

    /**
     * 支付密码安全问题
     */
    private String payQus;

    /**
     * 当日密码错误次数
     */
    private Integer todayPwdErrNum;

    /**
     * 累计密码错误次数
     */
    private Integer totalPwdErrNum;

    /**
     * "支付密码状态 0 - 正常 1 - 当日锁定 2 - 永久锁定"
     */
    private Integer payPwdStatus;

    /**
     * 支付密码安全问题答案
     */
    private String payQusAnswer;

    /**
     * 支付密码安全问题错误次数
     */
    private Integer totalPwdQusErrNum;

    /**
     * "支付密码安全问题状态 0 - 正常 1 - 锁定 2 - 永久锁定"
     */
    private Integer payQusAnsStatus;

    /**
     * 支付密码锁定时间
     */
    private Date payPwdLockTime;

    /**
     * 支付密码安全问题锁定时间
     */
    private Date payPwdQusLockTime;

    /**
     * 注册方式 01 - Email注册 02 - 手机注册
     */
    private String regType;

    /**
     * 企业用户手机号码
     */
    private String custMob;

    /**
     * 法人证件类型
     */
    private String legalPersonCertType;

    /* 国付宝 MCC add by lizheng 2015/6/19 */
    /**
     * 国付宝MCC类别代码
     */
    private String gopayMccClass;
    /**
     * 国付宝MCC行业代码
     */
    private String gopayMccCode;
    /**
     * 国付宝MCC省份
     */
    private String gopayMccProvince;
    /**
     * 国付宝MCC序号
     */
    private String gopayMccNum;

    /**
     * 企业头像地址
     */
    private String avatarUrl;

    /**
     * 是否开启动态口令登陆
     */
    private String showToken;
    /**
     * 实缴资本
     * 
     *//*
    private String paidInCapital;
    *//**
     * 日均交易量
     *//*
    private Long dailyAvarTradeAmount;
	/*zhoutong add 20160913 start*/
	/**
	 * 数字证书开关		00：关闭，01：开启
	 */
	private String caCertSwitch;
	
	/**
	 * 动态口令开关		00：关闭，01：开启
	 */
	private String dynPwdSwitch;
	/*zhoutong add 20160913 end*/
	/**
	 * 实缴资本
	 * 
	 *//*
	private String paidInCapital;
	*//**
	 * 日均交易量
	 *//*
	private Long dailyAvarTradeAmount;
*/

	
	//add by zyt 企业付款短信验证相关
	//+++++++++++start+++++++
	//短信验证状态，01：开启，02：关闭
	private String smsAcStat;
	//portal页面是否展示短信验证方式，01：展示，02：不展示
	private String smsAcDisplay;
	//++++++++++++end++++++++++ 
	

    //企业客户信息优化 20160922 gaocl --start
    /**
     * 营业执照经营范围
     */
    private String businessLicenseScope;   
    /**
     *  营业执照注册地
     */
    private String businessLicenseRegisterAddr;    
    /**
     *   企业联系人
     */
    private String corpContact;       
    /**
     * 企业联系人手机号
     */
    private String contactTel;
    /**
     * 实际控制人姓名
     */
    private String actualControllerName;
    /**
     * 实际控制人证件类型
     */
    private String actualControllerCertType;
    /**
     * 实际控制人证件号码
     */
    private String actualControllerCertNo;
    /**
     * 实际控制人证件有效期
     */
    private Date actualControllerCertTerm;
    /**
     * 注册IP
     */
    private String registerIp;
    
  //企业客户信息优化 20160922 gaocl --end
    private String gopayMccCity;  //国付宝mcc所在市

    private  Integer normalTransDay;//企业正常交易天数(除过充值,付款到国付宝交易)(用于T+0判断)

    /**
     * 是否航空商户
     */
    private String isAirlineMerchant;
    /**
     * 是否高危商户
     * @author <a href="mailto:yhwpeng@126.com">wangdong</a>
     * @date 2017-04-24 19:12:45
     */
    /* added by wangdong at 2017-04-24 start*/
    private String isSuspicion;
    /* added by wangdong at 2017-04-24 end*/

    /**
     * 企业区县code
     */
    private String corpCountryCode;

    /**
     * 客户简称
     */
    private String corpShortName;
    /**
     * 移动数字证书开关
     */
    private String mobCaCertSwitch;

    private String balanceWarningConfig;

    /**
	 * 商户用户开户唯一标识
	 */
	private String merCustId;
    
    @Id
    @Column(name = "CUST_ID", unique = true, nullable = false, length = 10)
    public String getCustId() {
        return this.custId;
    }


    public void setCustId(String custId) {
        this.custId = custId;
    }

    @Version
    @Column(name = "VERSION", nullable = false, precision = 22, scale = 0)
    public int getVersion() {
        return this.version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    @Column(name = "CORP_NAME", length = 100)
    public String getCorpName() {
        return this.corpName;
    }

    public void setCorpName(String corpName) {
        this.corpName = corpName;
    }

    @Column(name = "CORP_TYPE", length = 1)
    public String getCorpType() {
        return this.corpType;
    }

    public void setCorpType(String corpType) {
        this.corpType = corpType;
    }

    @Column(name = "CORP_ADDR", length = 200)
    public String getCorpAddr() {
        return this.corpAddr;
    }

    public void setCorpAddr(String corpAddr) {
        this.corpAddr = corpAddr;
    }

    @Column(name = "CORP_PROVINCE_CODE", length = 20)
    public String getCorpProvinceCode() {
        return this.corpProvinceCode;
    }

    public void setCorpProvinceCode(String corpProvinceCode) {
        this.corpProvinceCode = corpProvinceCode;
    }

    @Column(name = "CORP_CITY_CODE", length = 20)
    public String getCorpCityCode() {
        return this.corpCityCode;
    }

    public void setCorpCityCode(String corpCityCode) {
        this.corpCityCode = corpCityCode;
    }

    @Column(name = "CORP_ZIP", length = 15)
    public String getCorpZip() {
        return this.corpZip;
    }

    public void setCorpZip(String corpZip) {
        this.corpZip = corpZip;
    }

    @Column(name = "CORP_TEL", length = 20)
    public String getCorpTel() {
        return this.corpTel;
    }

    public void setCorpTel(String corpTel) {
        this.corpTel = corpTel;
    }

    @Column(name = "CORP_FAX", length = 20)
    public String getCorpFax() {
        return this.corpFax;
    }

    public void setCorpFax(String corpFax) {
        this.corpFax = corpFax;
    }

    @Column(name = "CORP_BANK_CODE", length = 10)
    public String getCorpBankCode() {
        return this.corpBankCode;
    }

    public void setCorpBankCode(String corpBankCode) {
        this.corpBankCode = corpBankCode;
    }

    @Column(name = "CORP_BANK_PROVINCE", length = 20)
    public String getCorpBankProvince() {
        return this.corpBankProvince;
    }

    public void setCorpBankProvince(String corpBankProvince) {
        this.corpBankProvince = corpBankProvince;
    }

    @Column(name = "CORP_BANK_CITY", length = 20)
    public String getCorpBankCity() {
        return this.corpBankCity;
    }

    public void setCorpBankCity(String corpBankCity) {
        this.corpBankCity = corpBankCity;
    }

    @Column(name = "CORP_BANK_BRANCH_NAME", length = 200)
    public String getCorpBankBranchName() {
        return this.corpBankBranchName;
    }

    public void setCorpBankBranchName(String corpBankBranchName) {
        this.corpBankBranchName = corpBankBranchName;
    }

    @Column(name = "CORP_BANK_ACCT_NUM", length = 30)
    public String getCorpBankAcctNum() {
        return this.corpBankAcctNum;
    }

    public void setCorpBankAcctNum(String corpBankAcctNum) {
        this.corpBankAcctNum = corpBankAcctNum;
    }

    @Column(name = "CORP_BANK_ACCT_NAME", length = 100)
    public String getCorpBankAcctName() {
        return this.corpBankAcctName;
    }

    public void setCorpBankAcctName(String corpBankAcctName) {
        this.corpBankAcctName = corpBankAcctName;
    }

    @Column(name = "CORP_STAT", length = 2)
    public String getCorpStat() {
        return this.corpStat;
    }

    public void setCorpStat(String corpStat) {
        this.corpStat = corpStat;
    }

    @Column(name = "IDENTITY_CODE", length = 32)
    public String getIdentityCode() {
        return this.identityCode;
    }

    public void setIdentityCode(String identityCode) {
        this.identityCode = identityCode;
    }

    @Column(name = "LINKMAN_NAME", length = 10)
    public String getLinkmanName() {
        return this.linkmanName;
    }

    public void setLinkmanName(String linkmanName) {
        this.linkmanName = linkmanName;
    }

    @Column(name = "LINKMAN_TEL", length = 10)
    public String getLinkmanTel() {
        return this.linkmanTel;
    }

    public void setLinkmanTel(String linkmanTel) {
        this.linkmanTel = linkmanTel;
    }

    @Column(name = "LINKMAN_MOBILE", length = 150)
    public String getLinkmanMobile() {
        /**
         * modified by zyt 2017-4-10 自动重新加密并解密返回
         */
        this.linkmanMobile = SensitiveInfoUtils.autoReencrypt(this.linkmanMobile);
        return SensitiveInfoUtils.smartDecryptWithCheck(this.linkmanMobile);
        //return this.linkmanMobile;
    }

    public void setLinkmanMobile(String linkmanMobile) {
        //this.linkmanMobile = linkmanMobile;
        /**
         * modified by zyt 2017-4-10 写操作的时候做加密
         */
        this.linkmanMobile = SensitiveInfoUtils.smartEncryptWithCheck(linkmanMobile);
    }

    @Column(name = "MER_NAME", length = 100)
    public String getMerName() {
        return this.merName;
    }

    public void setMerName(String merName) {
        this.merName = merName;
    }

    @Column(name = "WEBSITE_URL", length = 500)
    public String getWebsiteUrl() {
        return this.websiteUrl;
    }

    public void setWebsiteUrl(String websiteUrl) {
        this.websiteUrl = websiteUrl;
    }

    @Column(name = "IS_REPEAT_NOTIFY", length = 1)
    public String getIsRepeatNotify() {
        return this.isRepeatNotify;
    }

    public void setIsRepeatNotify(String isRepeatNotify) {
        this.isRepeatNotify = isRepeatNotify;
    }

    @Column(name = "IS_ANTI_FISHING", length = 10)
    public String getIsAntiFishing() {
        return this.isAntiFishing;
    }

    public void setIsAntiFishing(String isAntiFishing) {
        this.isAntiFishing = isAntiFishing;
    }

    @Column(name = "IS_REAL_NAME_CERTIFY", length = 1)
    public String getIsRealNameCertify() {
        return this.isRealNameCertify;
    }

    public void setIsRealNameCertify(String isRealNameCertify) {
        this.isRealNameCertify = isRealNameCertify;
    }

    @Column(name = "REAL_NAME_CERTIFY_TIME", length = 14)
    @Temporal(TemporalType.TIMESTAMP)
    public Date getRealNameCertifyTime() {
        return this.realNameCertifyTime;
    }

    public void setRealNameCertifyTime(Date realNameCertifyTime) {
        this.realNameCertifyTime = realNameCertifyTime;
    }

    @Column(name = "AUDIT_TIME", length = 14)
    @Temporal(TemporalType.TIMESTAMP)
    public Date getAuditTime() {
        return this.auditTime;
    }

    public void setAuditTime(Date auditTime) {
        this.auditTime = auditTime;
    }

    @Column(name = "CREATED_TS")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getCreatedTs() {
        return this.createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }

    @Column(name = "LAST_UPD_TS")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getLastUpdTs() {
        return this.lastUpdTs;
    }

    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }

    @Column(name = "LAST_UPD_TRANCODE", length = 6)
    public String getLastUpdTrancode() {
        return this.lastUpdTrancode;
    }

    public void setLastUpdTrancode(String lastUpdTrancode) {
        this.lastUpdTrancode = lastUpdTrancode;
    }

    @Column(name = "EMAIL", length = 50)
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @Column(name = "PRIVILEGE")
    public Integer getPrivilege() {
        return privilege;
    }

    public void setPrivilege(Integer privilege) {
        this.privilege = privilege;
    }

    @Column(name = "REMARKS", length = 255)
    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    @Column(name = "PAY_PWD", length = 150)
    public String getPayPwd() {
        return payPwd;
    }

    public void setPayPwd(String payPwd) {
        this.payPwd = payPwd;
    }

    @Column(name = "PAY_QUS", length = 150)
    public String getPayQus() {
        return payQus;
    }

    public void setPayQus(String payQus) {
        this.payQus = payQus;
    }

    @Column(name = "TODAY_PWD_ERR_NUM", precision = 1, scale = 0)
    public Integer getTodayPwdErrNum() {
        if (todayPwdErrNum == null) {
            return 0;
        }
        return todayPwdErrNum;
    }

    public void setTodayPwdErrNum(Integer todayPwdErrNum) {
        this.todayPwdErrNum = todayPwdErrNum;
    }

    @Column(name = "TOTAL_PWD_ERR_NUM", precision = 1, scale = 0)
    public Integer getTotalPwdErrNum() {
        if (totalPwdErrNum == null) {
            return 0;
        }
        return totalPwdErrNum;
    }

    public void setTotalPwdErrNum(Integer totalPwdErrNum) {
        this.totalPwdErrNum = totalPwdErrNum;
    }

    @Column(name = "PAY_PWD_STATUS", precision = 1, scale = 0)
    public Integer getPayPwdStatus() {
        if (payPwdStatus == null) {
            return 0;
        }
        return payPwdStatus;
    }

    public void setPayPwdStatus(Integer payPwdStatus) {
        this.payPwdStatus = payPwdStatus;
    }

    @Column(name = "PAY_QUS_ANSWER", length = 150)
    public String getPayQusAnswer() {
        return payQusAnswer;
    }

    public void setPayQusAnswer(String payQusAnswer) {
        this.payQusAnswer = payQusAnswer;
    }

    @Column(name = "TOTAL_PWD_QUS_ERR_NUM", precision = 1, scale = 0)
    public Integer getTotalPwdQusErrNum() {
        if (totalPwdQusErrNum == null) {
            return 0;
        }
        return totalPwdQusErrNum;
    }

    public void setTotalPwdQusErrNum(Integer totalPwdQusErrNum) {
        this.totalPwdQusErrNum = totalPwdQusErrNum;
    }

    @Column(name = "PAY_QUS_ANS_STATUS", precision = 1, scale = 0)
    public Integer getPayQusAnsStatus() {
        if (payQusAnsStatus == null) {
            return 0;
        }
        return payQusAnsStatus;
    }

    public void setPayQusAnsStatus(Integer payQusAnsStatus) {
        this.payQusAnsStatus = payQusAnsStatus;
    }

    @Column(name = "PAY_PWD_LOCK_TIME")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getPayPwdLockTime() {
        return payPwdLockTime;
    }

    public void setPayPwdLockTime(Date payPwdLockTime) {
        this.payPwdLockTime = payPwdLockTime;
    }

    @Column(name = "PAY_PWD_QUS_LOCK_TIME")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getPayPwdQusLockTime() {
        return payPwdQusLockTime;
    }

    public void setPayPwdQusLockTime(Date payPwdQusLockTime) {
        this.payPwdQusLockTime = payPwdQusLockTime;
    }

    @Column(name = "IS_MERCHANT", precision = 1, scale = 0)
    public int getIsMerChant() {
        return isMerChant;
    }

    public void setIsMerChant(int isMerChant) {
        this.isMerChant = isMerChant;
    }

    @Column(name = "CERT_FILE_URL")
    public String getCertFileUrl() {
        return certFileUrl;
    }

    public void setCertFileUrl(String certFileUrl) {
        this.certFileUrl = certFileUrl;
    }

    public void setWebsiteDesc(String websiteDesc) {
        this.websiteDesc = websiteDesc;
    }

    @Column(name = "WEBSITE_DESC", length = 500)
    public String getWebsiteDesc() {
        return websiteDesc;
    }

    /**
     * @return the activateCode
     */
    @Column(name = "ACTIVATE_CODE")
    public String getActivateCode() {
        return activateCode;
    }

    /**
     * @param activateCode
     *            the activateCode to set
     */
    public void setActivateCode(String activateCode) {
        this.activateCode = activateCode;
    }

    /**
     * @return the regType
     */
    @Column(name = "REG_TYPE")
    public String getRegType() {
        return regType;
    }

    /**
     * @param regType
     *            the regType to set
     */
    public void setRegType(String regType) {
        this.regType = regType;
    }

    @Column(name = "CUST_MOB", length = 150)
    public String getCustMob() {
       // return this.custMob;
        /**
         * modified by zyt 2017-4-10 自动重新加密并解密返回
         */
        this.custMob = SensitiveInfoUtils.autoReencrypt(this.custMob);
        return SensitiveInfoUtils.smartDecryptWithCheck(this.custMob);
    }

    public void setCustMob(String custMob) {
        //this.custMob = custMob;
        /**
         * modified by zyt 2017-4-10 写操作的时候做加密
         */
        this.custMob = SensitiveInfoUtils.smartEncryptWithCheck(custMob);
    }

    @Column(name = "BUSINESS_LICENSE_NO", length = 50)
    public String getBusinessLicenseNo() {
        return businessLicenseNo;
    }

    public void setBusinessLicenseNo(String businessLicenseNo) {
        this.businessLicenseNo = businessLicenseNo;
    }

    @Column(name = "ORGANIZATION_CODE", length = 30)
    public String getOrganizationCode() {
        return organizationCode;
    }

    public void setOrganizationCode(String organizationCode) {
        this.organizationCode = organizationCode;
    }

    @Column(name = "BUSINESS_TERM")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getBusinessTerm() {
        return businessTerm;
    }

    public void setBusinessTerm(Date businessTerm) {
        this.businessTerm = businessTerm;
    }

    @Column(name = "LEGAL_PERSON_NAME", length = 30)
    public String getLegalPersonName() {
        return legalPersonName;
    }

    public void setLegalPersonName(String legalPersonName) {
        this.legalPersonName = legalPersonName;
    }

    @Column(name = "LEGAL_PERSON_CERT_NO", length = 150)
    public String getLegalPersonCertNo() {
        //return legalPersonCertNo;
        /**
         * modified by zyt 2017-4-10 自动重新加密并解密返回
         */
        this.legalPersonCertNo = SensitiveInfoUtils.autoReencrypt(this.legalPersonCertNo);
        return SensitiveInfoUtils.smartDecryptWithCheck(this.legalPersonCertNo);
    }

    public void setLegalPersonCertNo(String legalPersonCertNo) {
        //this.legalPersonCertNo = legalPersonCertNo;
        /**
         * modified by zyt 2017-4-10 写操作的时候做加密
         */
        this.legalPersonCertNo = SensitiveInfoUtils.smartEncryptWithCheck(legalPersonCertNo);
    }

    @Column(name = "LEGAL_PERSON_CERT_TERM")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getLegalPersonCertTerm() {
        return legalPersonCertTerm;
    }

    public void setLegalPersonCertTerm(Date legalPersonCertTerm) {
        this.legalPersonCertTerm = legalPersonCertTerm;
    }

    @Column(name = "REGISTERED_CAPITAL", length = 100)
    public String getRegisteredCapital() {
        return registeredCapital;
    }

    public void setRegisteredCapital(String registeredCapital) {
        this.registeredCapital = registeredCapital;
    }

    @Column(name = "LEGAL_PERSON_CERT_TYPE", length = 2)
    public String getLegalPersonCertType() {
        return legalPersonCertType;
    }

    public void setLegalPersonCertType(String legalPersonCertType) {
        this.legalPersonCertType = legalPersonCertType;
    }

    @Column(name = "PAY_NOTICE_ADDRESS", length = 100)
    public String getPayNoticeAddress() {
        return payNoticeAddress;
    }

    public void setPayNoticeAddress(String payNoticeAddress) {
        this.payNoticeAddress = payNoticeAddress;
    }

    @Column(name = "GOPAY_MCC_CLASS", length = 2)
    public String getGopayMccClass() {
        return gopayMccClass;
    }

    public void setGopayMccClass(String gopayMccClass) {
        this.gopayMccClass = gopayMccClass;
    }

    @Column(name = "GOPAY_MCC_CODE", length = 4)
    public String getGopayMccCode() {
        return gopayMccCode;
    }

    public void setGopayMccCode(String gopayMccCode) {
        this.gopayMccCode = gopayMccCode;
    }

    @Column(name = "GOPAY_MCC_PROVINCE", length = 4)
    public String getGopayMccProvince() {
        return gopayMccProvince;
    }

    public void setGopayMccProvince(String gopayMccProvince) {
        this.gopayMccProvince = gopayMccProvince;
    }

    @Column(name = "GOPAY_MCC_NUM", length = 4)
    public String getGopayMccNum() {
        return gopayMccNum;
    }

    public void setGopayMccNum(String gopayMccNum) {
        this.gopayMccNum = gopayMccNum;
    }

    @Column(name = "AVATAR_URL", length = 150)
    public String getAvatarUrl() {
        return avatarUrl;
    }
	public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }
	
	/*zhoutong add 20160913 start*/
	@Column(name = "CA_CERT_SWITCH", length = 2)
	public String getCaCertSwitch() {
		return caCertSwitch;
	}
	public void setCaCertSwitch(String caCertSwitch) {
		this.caCertSwitch = caCertSwitch;
	}
	@Column(name = "DYN_PWD_SWITCH", length = 2)
	public String getDynPwdSwitch() {
		return dynPwdSwitch;
	}
	public void setDynPwdSwitch(String dynPwdSwitch) {
		this.dynPwdSwitch = dynPwdSwitch;
	}
	/*zhoutong add 20160913 end*/
	
    @Column(name = "SHOW_TOKEN", length = 2)
    public String getShowToken() {
        return showToken;
    }
    public void setShowToken(String showToken) {
        this.showToken = showToken;
    }   
    @Column(name = "BUSINESS_LICENSE_SCOPE", length = 3000)
    public String getBusinessLicenseScope() {
        return businessLicenseScope;
    }

    public void setBusinessLicenseScope(String businessLicenseScope) {
        this.businessLicenseScope = businessLicenseScope;
    }
    @Column(name = "BUSINESS_LICENSE_REGISTER_ADDR", length = 100)
    public String getBusinessLicenseRegisterAddr() {
        return businessLicenseRegisterAddr;
    }

    public void setBusinessLicenseRegisterAddr(String businessLicenseRegisterAddr) {
        this.businessLicenseRegisterAddr = businessLicenseRegisterAddr;
    }
    @Column(name = "CORP_CONTACT", length = 30)
    public String getCorpContact() {
        return corpContact;
    }

    public void setCorpContact(String corpContact) {
        this.corpContact = corpContact;
    }
    @Column(name = "CONTACT_TEL", length = 150)
    public String getContactTel() {
        //return contactTel;
        /**
         * modified by zyt 2017-4-10 自动重新加密并解密返回
         */
        this.contactTel = SensitiveInfoUtils.autoReencrypt(this.contactTel);
        return SensitiveInfoUtils.smartDecryptWithCheck(this.contactTel);
    }

    public void setContactTel(String contactTel) {
        //this.contactTel = contactTel;
        /**
         * modified by zyt 2017-4-10 写操作的时候做加密
         */
        this.contactTel = SensitiveInfoUtils.smartEncryptWithCheck(contactTel);
    }
    @Column(name = "ACTUAL_CONTROLLER_NAME", length = 30)
    public String getActualControllerName() {
        return actualControllerName;
    }

    public void setActualControllerName(String actualControllerName) {
        this.actualControllerName = actualControllerName;
    }
    @Column(name = "ACTUAL_CONTROLLER_CERT_TYPE", length = 2)
    public String getActualControllerCertType() {
        return actualControllerCertType;
    }

    public void setActualControllerCertType(String actualControllerCertType) {
        this.actualControllerCertType = actualControllerCertType;
    }
    @Column(name = "ACTUAL_CONTROLLER_CERT_NO", length = 150)
    public String getActualControllerCertNo() {
        //return actualControllerCertNo;
        /**
         * modified by zyt 2017-4-10 自动重新加密并解密返回
         */
        this.actualControllerCertNo = SensitiveInfoUtils.autoReencrypt(this.actualControllerCertNo);
        return SensitiveInfoUtils.smartDecryptWithCheck(this.actualControllerCertNo);
    }

    public void setActualControllerCertNo(String actualControllerCertNo) {
        //this.actualControllerCertNo = actualControllerCertNo;
        /**
         * modified by zyt 2017-4-10 写操作的时候做加密
         */
        this.actualControllerCertNo = SensitiveInfoUtils.smartEncryptWithCheck(actualControllerCertNo);
    }
    
    @Column(name = "ACTUAL_CONTROLLER_CERT_TERM")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getActualControllerCertTerm() {
        return actualControllerCertTerm;
    }

    public void setActualControllerCertTerm(Date actualControllerCertTerm) {
        this.actualControllerCertTerm = actualControllerCertTerm;
    }
    
    @Column(name = "REGISTER_IP", length = 20)
    public String getRegisterIp() {
        return registerIp;
    }

    @Column(name = "IS_BALANCE_WARNING_CONFIG",length = 4)
    public String getBalanceWarningConfig() {
        return balanceWarningConfig;
    }

    public void setBalanceWarningConfig(String balanceWarningConfig) {
        this.balanceWarningConfig = balanceWarningConfig;
    }

    public void setRegisterIp(String registerIp) {
        this.registerIp = registerIp;
    }

    /**
     * 描述：将状态码转换为文字 时间：2016年5月4日 下午1:49:02
     * 
     * @author : lx
     * @param corpType
     * @return String
     */
    public static String covertCorpType(String corpType) {
        if ("00".equals(corpType)) {
            corpType = "私营";
        } else if ("01".equals(corpType)) {
            corpType = "股份制";
        } else if ("02".equals(corpType)) {
            corpType = "集体企业";
        } else if ("03".equals(corpType)) {
            corpType = "国营";
        } else if ("04".equals(corpType)) {
            corpType = "外资";
        } else if ("05".equals(corpType)) {
            corpType = "合资";
        } else if ("06".equals(corpType)) {
            corpType = "其他";
        } else {
            corpType = "未设置";
        }

        return corpType;
    }

    /**
     * 描述：转换账户类型
     * 时间：2016年5月4日 下午5:39:40
     * @author : lx
     * @param accountState
     * @return
     * String
     */
    public static String covertAccountState(String accountState) {
        if ("00".equals(accountState)) {
            accountState = "正常";
        } else if ("01".equals(accountState)) {
            accountState = "待邮箱验证";
        } else if ("02".equals(accountState)) {
            accountState = "待补全客户信息";
        } else if ("03".equals(accountState)) {
            accountState = "待审核";
        } else if ("04".equals(accountState)) {
            accountState = "审核不通过";
        } else if ("05".equals(accountState)) {
            accountState = "控制台锁定";
        } else if ("99".equals(accountState)) {
            accountState = "注销";
        } else {
            accountState="未知";
        }
        return accountState;
    }

	//add by zyt 短信验证相关字段的getter和setter
	//+++++++start+++++++++
	@Column(name = "SMS_AC_STAT", length = 2)
	public String getSmsAcStat() {
		return smsAcStat;
	}

	public void setSmsAcStat(String smsAcStat) {
		this.smsAcStat = smsAcStat;
	}

	@Column(name = "SMS_AC_DISPLAY", length = 2)
	public String getSmsAcDisplay() {
		return smsAcDisplay;
	}

	public void setSmsAcDisplay(String smsAcDisplay) {
		this.smsAcDisplay = smsAcDisplay;
	}
	//+++++++end++++++

	@Column(name = "GOPAY_MCC_CITY", length = 10)
    public String getGopayMccCity() {
        return gopayMccCity;
    }

    public void setGopayMccCity(String gopayMccCity) {
        this.gopayMccCity = gopayMccCity;
    }

    @Column(name = "NOMAL_TRANS_DAY")
    public Integer getNormalTransDay() {
        return normalTransDay;
    }

    public void setNormalTransDay(Integer normalTransDay) {
        this.normalTransDay = normalTransDay;
    }

    @Column(name = "IS_AIRLINE_MERCHANT")
	public String getIsAirlineMerchant() {
		return isAirlineMerchant;
	}

	public void setIsAirlineMerchant(String isAirlineMerchant) {
		this.isAirlineMerchant = isAirlineMerchant;
	}

    /*高危用户 added by wangdong at 2017-04-24 start*/
    @Column(name = "IS_SUSPICION")
    public String getIsSuspicion() {
        return isSuspicion;
    }
    @Column(name = "CORP_COUNTRY_CODE", length = 20)
    public String getCorpCountryCode() {
        return corpCountryCode;
    }
    public void setIsSuspicion(String isSuspicion) {
        this.isSuspicion = isSuspicion;
    }
    /*高危用户 added by wangdong at 2017-04-24 end*/

    @Column(name = "LEGAL_PERSON_MOB")
    public String getLegalPersonMobile() {
        this.legalPersonMobile = SensitiveInfoUtils.autoReencrypt(this.legalPersonMobile);
        return SensitiveInfoUtils.smartDecryptWithCheck(this.legalPersonMobile);
    }

    public void setLegalPersonMobile(String legalPersonMobile) {

        this.legalPersonMobile = SensitiveInfoUtils.smartEncryptWithCheck(legalPersonMobile);
    }
    public void setCorpCountryCode(String corpCountryCode) {
        this.corpCountryCode = corpCountryCode;
    }
    @Column(name = "CONTRACT_TS")
    public Date getContractTs() {
        return contractTs;
    }

    public void setContractTs(Date contractTs) {
        this.contractTs = contractTs;
    }

    @Column(name = "IS_OPEN_CHECK_MAC")
    public String getIsOpenCheckMac() {
        return isOpenCheckMac;
    }

    public void setIsOpenCheckMac(String isOpenCheckMac) {
        this.isOpenCheckMac = isOpenCheckMac;
    }

    @Column(name = "CORP_SHORT_NAME", length = 100)
    public String getCorpShortName() {
        return corpShortName;
    }

    public void setCorpShortName(String corpShortName) {
        this.corpShortName = corpShortName;
    }

    @Column(name = "MOB_CA_CERT_SWITCH", length = 2)
	public String getMobCaCertSwitch() {
		return mobCaCertSwitch;
	}

	public void setMobCaCertSwitch(String mobCaCertSwitch) {
		this.mobCaCertSwitch = mobCaCertSwitch;
	}

	@Column(name = "MER_CUST_ID", length = 20)
	public String getMerCustId() {
		return merCustId;
	}


	public void setMerCustId(String merCustId) {
		this.merCustId = merCustId;
	}
    
    
}
